<?php
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>

<div class="tongrong-box" style="width:680px;">
	<form class="login-box-form J-ajaxForm" action="/stretch/sign/option/signsave/" method="post" autocomplete="off">
	<div class="tongrong-box-main">
    	<table width="100%" cellpadding="0" cellspacing="0" border="0">
        	<tr>
            	<td width="90px" height="30">通融原因：</td>
                <td>
                	<select class="J-sr-cause" data-chkTxt="" name="sr_cause">
                    </select>
                </td>
            </tr>
            <tr>
            	<td height="70">情况说明：</td>
                <td>
                	<textarea name="sr_remark" style="resize:none;"></textarea>
                </td>
            </tr>
            <tr>
            	<td height="30">申请人员：</td>
                <td>
                	<input type="text" name="sr_uname" value="<?php echo $this->member_info['u_realname'];?>" readonly />
                </td>
            </tr>
            <tr>
            	<td height="30">申请时间：</td>
                <td>
                	<input type="text" name="sr_time" value="<?php echo date('Y-m-d',time());?>" readonly />
                </td>
            </tr>
        </table>
    </div>
    <div class="luru-box-btn mt50" style="margin-right:25px;">
		<input type="hidden" name="oid" value="<?php echo $this->oid;?>" />
    	<input class="btn-submit-blue fn-left mr15 J-submit" type="submit" value="提交" />
        <a class="a-btn-close J-a-btn-close" href="javascript:;">关闭</a>
    </div>
	</form>
</div>

<script>
	//获取通融原因
	$(".J-sr-cause").dyhlSelect({'type':'通融原因'});
	
	//关闭弹出
	$(".J-a-btn-close").on('click',function(){
		
		var winElement = parent.Ext.fly(window.frameElement).up('div.x-window');
		parent.Ext.getCmp(winElement.id).close();
		
	});
	
	$(document).ready(function(e) {
		//全选
        $(".J-submit").on('click',function(){
			$(this).dyhlForm({
				beforefunction:function(){
					$(".J-submit").prop('disabled',true);
				},
				nofunction:function(){
					$(".J-submit").prop('disabled',false);
				},
				sucessfunction:function(data){
					$(".J-submit").prop('disabled',false);
					if(data['success']){
						Ext.Msg.alert('提示','提交成功',function(){
							window.parent.location.reload();	
						});
						
					}else{
						Ext.Msg.alert('提示',data['msg']);
					}
				}	
			});	
		});
    });
	
</script>

<?php include $this->Render('footer.php'); ?>